package org.association.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.association.dto.NormalProposalDTO;
import org.association.entity.NormalProposal;
import org.association.entity.VoteRecord;

import java.util.ArrayList;

public interface NormalProposalService extends IService<NormalProposal> {
    ArrayList<NormalProposal> getAllProposals(String orgID);

    NormalProposal addNormalProposalDTO(NormalProposalDTO normalProposalDTO);

    Integer voteOneProposal(String proposalID,  String userID, Integer isSuppor);

    public ArrayList<String> getAllAgreePeople(String proposalID);

    public NormalProposal getOneProposalByID(String proposalID);

    VoteRecord getVoteRecordById(String proposalID, String userID);
}
